/*
 * The X-Minou Projet
 * X-Minou is a text, irc like chat program for
 * local users of Unix system
 *
 * Author :  RaX| <raxxx.fr@gmail.com>
 *
 * Xminou in a free software released as-is.
 */

#ifndef __XMINOU_WRITE_HH
#define __XMINOU_WRITE_HH

#include <string>
#include <fstream>

class WriteToFile
{

public:

  WriteToFile (void);
  virtual ~WriteToFile (void);

  void send_message (std::string);
  void send_action (std::string);
  void send_quit_action (std::string = "");

  /* What ?? some Ester eggs in X-Minou ? Yes Sir ! */
  void easter_egg_bugs (std::string = "Humm, Quoi de Neuf Docteur ?");
  void easter_egg_minou (std::string = "miaouu !");
  void easter_egg_homer (std::string = "ToOOoo !");

private:

  std::string get_current_date (void);

  std::ofstream m_file;

};

#endif /* __XMINOU_WRITE_HH */

